home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000213_news@columbia.edu _Mon Oct 18 12:56:35 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA19531
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 18 Oct 1999 12:56:35 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA15486
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 18 Oct 1999 12:41:42 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. Subject: Re: [Q] how to take an action on closing network connection OR redefine a command
  10. From: Matt Swift <swift@alum.mit.edu>
  11. Message-ID: <m2r9is1v15.fsf@aleph.swift.xxx>
  12. Date: 18 Oct 1999 12:41:10 -0400
  13. Organization: Shore.Net/Eco Software, Inc; (info@shore.net)
  14. To: kermit.misc@columbia.edu
  15.  
  16. >>"M" == Matt Swift <swift@alum.mit.edu> writes:
  17.  
  18. >>"F" == Frank da Cruz <fdc@watsun.cc.columbia.edu> writes:
  19.  
  20.     F> Before 7.0 is released, we might also be able to add an ON_CLOSE macro
  21.     F> capability, similar to the current ON_EXIT macro.
  22.  
  23.     M> It seems to me that such a thing would be useful in more situations
  24.     M> than the one I described.  
  25.  
  26. Even if the free ssh replacement still won't work with PIPE, the
  27. ON_CLOSE feature would make it almost as simple to use tunnelling.
  28. The 'tunnel' script I wrote is a very simple shell script, and could
  29. be improved to echo to stdout the machine:port actually used for the
  30. tunnel, rather than relying on a convention as I have so far:
  31.  
  32.     ; errors/failures not caught in this simple version
  33.     def isplog {
  34.         open !read tunnel start isp
  35.         assign ON_CLOSE { run tunnel stop isp }
  36.         read \%p                 ; e.g., localhost:9002
  37.         set host \%p /telnet
  38.         login
  39.     }
  40.  
  41. The machine echoed by 'tunnel' would always be "localhost", but maybe
  42. in some circumstances 'tunnel' wants to tell you to go ahead and use
  43. the actual remote machine -- maybe 'tunnel' knows it is secure or
  44. something.